FROM registry.cn-hangzhou.aliyuncs.com/bookshare-ruiya/ubuntu-dev

ADD Sandbox-amd64 /judge/server/Sandbox-amd64
#ADD Sandbox-arm64 /judge/server/Sandbox-arm64

RUN mkdir -p /judge/test_case /judge/run /judge/spj /judge/log
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY run.sh /judge/server/run.sh
COPY check_nacos.sh /judge/server/check_nacos.sh
COPY testlib.h /usr/include/testlib.h

COPY *.jar /judge/server/app.jar

WORKDIR /judge/server

ENTRYPOINT ["bash", "./check_nacos.sh"]

EXPOSE 8088

EXPOSE 5050